<script lang="ts" setup>
import { useTheme } from "@/hooks/useTheme"

// 将 Element Plus 的语言设置为中文
import zhCn from "element-plus/es/locale/lang/zh-cn"

const { initTheme } = useTheme()

/** 初始化主题 */
initTheme()
</script>

<template>
  <el-config-provider :locale="zhCn">
    <router-view />
  </el-config-provider>
</template>
<style lang="scss">
@font-face {
  font-family: "PangMenZhengDao";
  src: url("@/assets/fonts/PangMenZhengDao.ttf") format("truetype"); /* 本地字体路径 */
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "YouSheBiaoTiHei";
  src: url("@/assets/fonts/YouSheBiaoTiHei.ttf") format("truetype"); /* 引入第二个字体 */
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "AlibabaPuHuiTi20";
  src: url("@/assets/fonts/ALIBABAPUHUITI-2-35-THIN.OTF") format("truetype"); /* 引入第二个字体 */
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "ALIBABAPUHUITI30";
  src: url("@/assets/fonts/ALIBABAPUHUITI-2-55-REGULAR.OTF") format("truetype"); /* 引入第二个字体 */
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "ALIBABAPUHUITI40";
  src: url("@/assets/fonts/ALIBABAPUHUITI-2-65-MEDIUM.OTF") format("truetype"); /* 引入第二个字体 */
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "DINCONDENSED";
  src: url("@/assets/fonts/D-DINCONDENSED.OTF") format("truetype"); /* 引入第二个字体 */
  font-weight: normal;
  font-style: normal;
}
</style>
